<!---
	Title:		EPAR1.1 
	Author:		Bruce Frick
	Purpose:	Step2 Conformation 1 page
--->

<cfset BASE = CreateObject("component", "#session.rootDir#.cfc.base") />

<cfoutput>
	<!---HTML header, css links, js links, and page title--->
    #BASE.htmlHeader(
    	"", <!---JS links--->
        "", <!---CSS links--->
        "Step 2:  HR - Orientation 1", <!---Page Title--->
        "Status" <!---Active Nav Link--->
    )#
    <!---HTML header, css links, js links, and page title--->
    
    
    <cfif Session.Auth EQ True and (Session.strAuthType EQ Session.IT or Session.strAuthType EQ Session.HR)>
    
    	<!---Query objects--->
        <cfset QUERIES = {
			GetStep2Waiting = CreateObject("component", "#session.rootDir#.cfc.statusQueries").funcGetNONSCFStepWaiting(3)
		} />
        <!---Query objects--->
        
        <h1 class="title">Step 3:  HR - Orientation</h1>
        <div class="entry">

            Welcome, #Session.arrEmpInfo.FirstName# #Session.EmpInfo.LastName#.  
            In this step, we'll confirm the information provided by the contrating/volunteer manager. 
            <BR /> <BR />
        
			<cfif QUERIES.GetStep2Waiting.recordcount GT 0>
                <table>
                    <tr>
                        <td valign="top">
                            Please select an individual to Confirm/Create:
                        </td>
                        <td>
                            <cfform name="frmStep2" method="post" action="Step2-Orientation2.cfm">
                                <table>
                                    <tr>
                                        <td>
                                            <cfselect name='Hire' tabindex="10" 
                                            onChange="document.location.href='Step2-Orientation2.cfm?StepID=' + $('##Hire option:selected').val()">
                                                <option value='0'>-- Select an Employee --</option>
                                                <cfloop query="QUERIES.GetStep2Waiting">
                                                    <option value='#ID#'>#Name#</option>
                                                </cfloop>
                                            </cfselect>
                                        </td>
                                    </tr>
                                </table>
                            </cfform>  
                        </td>
                    </tr>
                </table>
            <cfelse>
                <span class="error">At the present time, there are not any individuals staged for orientation.</span>
            </cfif>
        
        </div>
    
    <cfelse>
        <cfinclude template="../denied.cfm">
    </cfif>
    
    
    <!---HTML footer, closes html and body tags.  Any footer info goes here--->
    #BASE.htmlFooter()#
    <!---HTML footer, closes html and body tags.  Any footer info goes here--->
</cfoutput>